package com.example.mq2.mqserver.core;

import java.io.Serializable;

public class BasicProperties implements Serializable {

    private String messageId;
    private String routingKey;
    //消息是否持久化, 1 表示不持久化, 2表示持久化
    private int deliverMode = 1;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public int getDeliverMode() {
        return deliverMode;
    }

    public void setDeliverMode(int deliverMode) {
        this.deliverMode = deliverMode;
    }
}
